<template>
    <el-main>
        <el-main class="ep-body">
			<epl-top-bar :datas="{formData:form,panel:panel}" showPerson personType="PERSON_INJURY_CB" psTagType="PERSON_AAB001_GROUP">
                        <!-- showCompany companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP" -->
                        
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
            <epl-userMessage dataType="person" isCodeType idCount="10" :panel="panel">
            </epl-userMessage>   
            <el-form :model="form" ref="form" :rules="rules">
 			<el-card class="ep-card">
            <ep-title>请输入工伤认定信息</ep-title>
					<ep-input colspan="0" label="单位编号"  name="aab001" :property="form.aab001" placeholder=""
                                  p="H" ></ep-input>
                    <ep-input colspan="0" label="单位管理码"  name="aab999" :property="form.aab999" placeholder=""
                                  p="H" :datas="{formData:form,panel:panel}" ></ep-input>
					<el-row :gutter="10">
                        <epl-search-input colspan="8" label="统一社会信用代码" name="aab000" :property="form.aab000" placeholder="请输入统一社会信用代码"
                                  p="R" :datas="{formData:form,panel:panel}" type="company" tagType="COMPANY_AAB000_EXACT" api="/business/d100insiup/d01companycommon/CpQueryComm/doCpQueryComm01">
                            <epl-search-input-item header="统一社会信用代码"  name="bab010" ></epl-search-input-item>
                            <epl-search-input-item header="单位名称" name="aab069"></epl-search-input-item>
                        </epl-search-input>
                        <ep-input colspan="16" label="单位名称" name="aab069" :property="form.aab069" placeholder=""
                                  p="D" ></ep-input>
                        </el-row>
					<el-row :gutter="10">
                        <ep-input colspan="8" label="工伤认定书编号" name="alc011" rules="this.$localRules.isAlc011" :property="form.alc011" placeholder="请输入工伤认定书编号"
                                  p="R" :datas="{formData:form,panel:panel}" isChange></ep-input>
                        <ep-date colspan="8" label="工伤发生时间" name="alc020"   :property="form.alc020" placeholder="请选择工伤发生时间"
                                  p="R" :datas="{formData:form,panel:panel}" type="date" format="yyyy-MM-dd"  isChange></ep-date>
                        <ep-date colspan="8" label="工伤认定日期"  name="alc031"   :property="form.alc031" placeholder="请选择工伤认定日期"
                                  p="R" type="date" format="yyyy-MM-dd" :datas="{formData:form,panel:panel}" isChange></ep-date></el-row>
                    <el-row :gutter="10">
                        <ep-date colspan="8" label="工伤报告日期"  name="alc026" :property="form.alc026" placeholder="请选择工伤报告日期"
                                  p="E" type="date" format="yyyy-MM-dd" :datas="{formData:form,panel:panel}" isChange></ep-date>
                        <ep-date colspan="8" label="工伤认定申请日期"  name="aae127"   :property="form.aae127" placeholder="请选择工伤认定申请日期"
                                  p="R" type="date" format="yyyy-MM-dd" :datas="{formData:form,panel:panel}" isChange></ep-date>
                        <ep-select colspan="8" label="工伤认定结论" name="ala015"   :property="form.ala015" placeholder="请选择工伤认定结论"
                                  p="R" :datas="{formData:form}" codetype="ALA015" isChange></ep-select></el-row>       
                    <el-row :gutter="10">
						<ep-select colspan="16" label="认定依据类别" name="ala016"   :property="form.ala016" placeholder="请选择认定依据类别"
                                  p="R" codetype="ALA016"  ></ep-select>
                        <ep-select colspan="8" label="工伤认定机构" name="alc030"   :property="form.alc030" placeholder="请选择工伤认定机构"
                                  p="R" codetype="ALC030" ></ep-select>
                    </el-row>

					<el-row :gutter="10">
                        <ep-select colspan="8" label="事故类别" name="ala028"   :property="form.ala028" placeholder="请选择事故类别"
                                  p="R" codetype="ALA028" ></ep-select> 
                        <ep-select colspan="8" label="工伤类别" name="alc027"   :property="form.alc027" placeholder="请选择工伤类别"
                                  p="R" codetype="ALC027" ></ep-select>
						<ep-select colspan="8" label="伤害程度" name="alc021"   :property="form.alc021" placeholder="请选择伤害程度"
                                  p="R" codetype="ALC021" ></ep-select></el-row>
                    <el-row :gutter="10">
					<ep-textarea colspan="24" label="伤害部位描述" name="alc022" :property="form.alc022" placeholder="请输入伤害部位描述"
                                  p="E" :rows="3"></ep-textarea>
					</el-row>
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="伤害部位1" name="alc042"   :property="form.alc042" placeholder="请选择伤害部位"
                                  p="R" codetype="ALC042" :datas="{formData:form,panel:panel}" isChange isCodeType></ep-select>
                        <ep-select colspan="8" label="伤害部位2" name="alc043" :property="form.alc043" placeholder="请选择伤害部位"
                                  p="E" codetype="ALC043" :datas="{formData:form,panel:panel}" isChange isCodeType
                                  SelectFilterData=" aaa102 = ':alc042' "></ep-select>
                        <ep-select colspan="8" label="伤害部位3" name="alc044" :property="form.alc044" placeholder="请选择伤害部位"
                                  p="E" codetype="ALC044" :datas="{formData:form,panel:panel}" isChange isCodeType
                                  SelectFilterData=" aaa102 = ':alc043' "></ep-select></el-row>    
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="伤害部位4" name="alc046" :property="form.alc046" placeholder="请选择伤害部位"
                                  p="E" codetype="ALC046" :datas="{formData:form,panel:panel}" isChange isCodeType
                                  SelectFilterData=" aaa102 = ':alc044' "></ep-select>
                        <ep-select colspan="8" label="伤害部位5" name="alc047" :property="form.alc047" placeholder="请选择伤害部位"
                                  p="E" codetype="ALC047" SelectFilterData=" aaa102 = ':alc046' "></ep-select>
                        <ep-select colspan="8" label="职业(工种)" name="aca111"   :property="form.aca111" placeholder="请选择职业工种"
                                  p="R" codetype="ACA111" ></ep-select></el-row>                      
 	                <el-row :gutter="10">
                        <ep-date colspan="8" label="接触职业病危害日期" name="blc150" :property="form.blc150" :placeholder="form.blc150.placeholder"
                                  p="D" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" :datas="{formData:form,panel:panel}" isChange></ep-date>
                        <ep-number colspan="8" label="接触职业病危害月数" name="alc048" :property="form.alc048" :placeholder="form.alc048.placeholder"
                                  p="D"></ep-number>
                        <ep-select colspan="8" label="职业病名称1" name="ala017" :property="form.ala017" :placeholder="form.ala017.placeholder"
                                  p="D" codetype="ALA017" :datas="{formData:form,panel:panel}" isChange isCodeType></ep-select></el-row> 
                    <el-row :gutter="10">
                        <ep-select colspan="8" label="职业病名称2" name="ala029" :property="form.ala029" :placeholder="form.ala029.placeholder"
                                  p="D" codetype="ALA029" 
                                  SelectFilterData=" aaa102 = ':ala017' "></ep-select>
                        <ep-date colspan="8" label="因工死亡日期"  name="alc040" :property="form.alc040" :placeholder="form.alc040.placeholder"
                                      p="D" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" :datas="{formData:form,panel:panel}" isChange></ep-date></el-row>
                    <el-row :gutter="10">
                        <ep-textarea colspan="24"  label="伤害事件情况" name="alc006" :property="form.alc006" placeholder="请输入伤害事件情况"
                                  p="E" :rows="3" ></ep-textarea>
                    </el-row>
					
					<el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save"  @formValidate="formValidate" 
                                    :validate="['form']"   :datas="{formData: form,panel:panel}" name="保存"></ep-saveButton>
                    </el-row>
                </el-card>               
                </el-form>
        </el-main>
    </el-main>
</template>


<script src="../js/InjuryCognizanceRegJS.js"></script>
